/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import java.util.Objects;
/**
 *
 * @author percynguyen92
 */
public class Cauhoi
{
    private Integer maCH;
    private String noiDung;
    private int maMH;
    private boolean trangThai;

    public Cauhoi() {
    }

    public Cauhoi(Integer maCH) {
        this.maCH = maCH;
    }

    public Cauhoi(Integer maCH, String noiDung, int maMH, boolean trangThai) {
        this.maCH = maCH;
        this.noiDung = noiDung;
        this.maMH = maMH;
        this.trangThai = trangThai;
    }

    public Integer getMaCH() {
        return maCH;
    }

    public void setMaCH(Integer maCH) {
        this.maCH = maCH;
    }

    public String getNoiDung() {
        return noiDung;
    }

    public void setNoiDung(String noiDung) {
        this.noiDung = noiDung;
    }

    public int getMaMH() {
        return maMH;
    }

    public void setMaMH(int maMH) {
        this.maMH = maMH;
    }

    public boolean getTrangThai() {
        return trangThai;
    }

    public void setTrangThai(boolean trangThai) {
        this.trangThai = trangThai;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 29 * hash + Objects.hashCode(this.maCH);
        return hash;
    }

    
    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Cauhoi)) {
            return false;
        }
        Cauhoi other = (Cauhoi) object;
        if ((this.maCH == null && other.maCH != null) || (this.maCH != null && !this.maCH.equals(other.maCH))) {
            return false;
        }
        return true;
    }

    
    @Override
    public String toString() {
        return "Model.Cauhoi[ maCH=" + maCH + " ]";
    }
    
}
